﻿@model IEnumerable<GosWeb.Models.Db.MedicalRecord>
@{

    if (Model.Count() == 0)
    {
        <p>无医疗记录</p>
    }
    else
    {
    <table>
        <tr style="background-color:Green">
            <th>
                ID
            </th>
            <th>
                编号
            </th>
            <th>
                疾病代码
            </th>
            <th>
                名称
            </th>
            <th>
                日期
            </th>
            <th>
                描述
            </th>

        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.ActionLink(item.MrID.ToString(), "Details", new { id = item.MrID })
                </td>
                <td>
                    @Html.ActionLink(item.AnID.ToString(), "Details", "Biont", new { id = item.AnID }, null)
                </td>
                <td>
                    @Html.ActionLink(item.IllCode, "../Illness/Details", new { id = item.IllCode })
                </td>
                <td>
                     @Html.DisplayFor(modelItem => item.IllName)
                </td>
                <td>
                    @String.Format("{0:D}", item.MedicalDate)
                </td>
                <td>
                    @GosWeb.Biz.Utilities.GetSortSummary(item.Description, 40)
                </td>
            </tr>
        }
    </table>

    }
}
